import request from '@/plugins/request';
// 部门列表
export function memberList(data) {
    return request({
      url: "/v1/member/list",
      method: "get",
      params: data,
    });
}
  
  //新增部门
export function createMember(data) {
    return request({
        url: "/v1/member/create",
        method: "post",
        data,
    });
}

//删除部门
export function deleteMember(data) {
    return request({
        url: "/v1/member/delete",
        method: "post",
        data,
    });
}

// 部门详情
export function memberInfo(data) {
    return request({
      url: "/v1/member/info",
      method: "get",
      params: data,
    });
}
  // 修改部门获取筛选条件
export function changeDepInfo(data) {
    return request({
      url: "/v1/member/change-dep-info",
      method: "get",
      params: data,
    });
}
//编辑部门
export function updateMember(data) {
    return request({
        url: "/v1/member/update",
        method: "post",
        data,
    });
}

// 用户筛选列表
export function memberCondition(data) {
    return request({
      url: "/v1/member/list-condition",
      method: "get",
      params: data,
    });
}

